package com.fortune.service;

import com.fortune.dto.in.cProductPriceMgt.CProductPriceAddDto;
import com.fortune.dto.in.cProductPriceMgt.CProductPriceEditDto;
import com.fortune.dto.in.cProductPriceMgt.CProductPriceListDto;
import com.fortune.dto.in.producePriceManagement.EditPriceDealerDto;
import com.fortune.dto.in.producePriceManagement.ProduceDealerListDto;
import com.fortune.vo.cProductPriceMgt.CProductPrice;
import com.fortune.vo.producePriceManagement.ProductWholesalePriceList;

import java.util.List;

public interface DProductWholesalePriceService {
    /**
     * 经销商进货价格列表
     * @param companyId
     * @param produceDealerListDto
     * @return
     */
    List<ProductWholesalePriceList>  queryDealerProduceInfo(String companyId, ProduceDealerListDto produceDealerListDto);

    /**
     * 经销商进货价格列表个数
     * @param companyId
     * @param produceDealerListDto
     * @return
     */
    int queryDealerProduceInfoCount(String companyId, ProduceDealerListDto produceDealerListDto);

    /**
     * 修改优惠价格
     * @param companyId
     * @param editPriceDealerDto
     * @return
     */
    int editPrice(String companyId,EditPriceDealerDto editPriceDealerDto);


    /**
     * 新增商品统一批发价
     * @param companyId
     * @param dealerId
     * @param addDto
     * @return
     */
    int addProductSalePrice(String companyId,String dealerId,CProductPriceAddDto addDto);


    /**
     * 编辑商品统一批发价
     * @param companyId
     * @param dealerId
     * @param editDto
     * @return
     */
    int editProductSalePrice(String companyId,String dealerId,CProductPriceEditDto editDto);


    /**
     * 删除统一批发价
     * @param companyId
     * @param dealerId
     * @param productId
     * @return
     */
    int deleteProductSalePrice(String companyId,String dealerId,String productId);

    /**
     * 查询经销商对客户统一批发价列表
     * @param dealerId
     * @return
     */
    List<CProductPrice> findWholesale(String dealerId,CProductPriceListDto cProductPriceListDto);

    /**
     * 查询经销商对客户统一批发价列表数量
     * @param dealerId
     * @return
     */
    int findWholesaleCount(String dealerId);

}
